package com.qf.entity;

import lombok.Data;

@Data //商品实体类
public class Goods {

    private int g_id; //商品g_id
    private String g_name; //商品名称g_name
    private int g_price; //商品单格g_price
    private int g_discount; //商品折扣价g_discount
    private String g_image; //商品图片g_image
    private int m_id; //商家id外键
    private String g_descripe; //商品描述
    private int g_sale; //商品月销量
    private int g_goodevaluate; //商品好评率
    private int gc_id; //商品分类id
    private int g_status; //商品是否失效下架上架

    public Goods(int g_id, String g_name, int g_price, int g_discount, String g_image, int m_id, String g_descripe, int g_sale, int g_goodevaluate, int gc_id, int g_status) {
        this.g_id = g_id;
        this.g_name = g_name;
        this.g_price = g_price;
        this.g_discount = g_discount;
        this.g_image = g_image;
        this.m_id = m_id;
        this.g_descripe = g_descripe;
        this.g_sale = g_sale;
        this.g_goodevaluate = g_goodevaluate;
        this.gc_id = gc_id;
        this.g_status = g_status;
    }
}
